home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus Special 13
/
AMIGAplus Sonderheft 13 (1998)(ICP)(DE)[!].iso
/
rexx
/
treeshow.m2i
< prev
next >
Wrap
Text File
|
1997-11-18
|
871b
|
70 lines
/* montre visuellement l' arborescence des Menus de M2I5 */
/* Thierry Schmitt Avril 1996 */
ADDRESS "M2IPort.Rexx"
OPTIONS RESULTS
m2ipenv = ":"
CALL explo
FLUSH
MESSAGE "'a y-est ! Vous avez tout vu !!"
EXIT
explo: PROCEDURE EXPOSE m2ipenv
posdock = 1
m2ipath = m2ipenv
COUNT m2ipath||"*"
whoops = RC
nbitems = RESULT
DO WHILE whats~=6
GETNAME m2ipath||posdock
whats = RC
ndock = RESULT
IF whats = 6 THEN BREAK
nbitems = nbitems - 1
IF RIGHT(ndock,2)=".D" THEN DO
newpath = m2ipath||ndock
GET WINDOW newpath
wopen = RESULT
IF wopen = 0 THEN DO
OPENDRW newpath
tmps = TIME(s)
DO WHILE TIME(S) < tmps+1
END
END
m2ipenv = newpath||"/"
CALL explo
IF wopen = 0 THEN CLOSEDRW newpath
END
posdock = posdock + 1
END
RETURN